package com.app.shop.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtil {

    public static String getRegSub(String reg,String str){
        Pattern patC0 = Pattern.compile(reg);
        Matcher matC0 = patC0.matcher(str);
        while (matC0.find()) {
            return matC0.group();
        }
        return null;
    }
}
